#ifndef MYCHART_H
#define MYCHART_H

#include <QObject>
#include <QWidget>
#include <QtCharts>

QT_BEGIN_NAMESPACE
class QChart;
class QChartView;
QT_END_NAMESPACE

class mychart : public QWidget
{
    Q_OBJECT
public:
    explicit mychart(QWidget *parent = nullptr);
    void createcharviewFun(qreal x, qreal y);
    void myappend(qreal x, qreal y);
    void creat();
private:
    QChartView *charview;
    QChart *chart;
    QLineSeries *series = new QLineSeries;
signals:
};

#endif // MYCHART_H
